import time
import datetime
#12/07/2014-22:44:37.169789
myDate = "12/07/2014-22:44:37.169789"
#myDate = "2014-08-01 04:41:52,117"
timestamp = time.mktime(datetime.datetime.strptime(myDate, "%d/%m/%Y-%H:%M:%S.%f").timetuple())

print timestamp
